package com.jrx.anytxn.param.mapper.ext;/**
 * ExtPrRightsQualificationMapper
 *
 * @author lujianyou
 * @Description TODO
 * @Date 2021/6/11 10:41
 * @Version 1.0
 **/

import com.jrx.anytxn.common.annotation.ParamTuningAnnotation;
import com.jrx.anytxn.param.entity.PrRightsQualification;
import com.jrx.anytxn.param.mapper.base.PrRightsQualificationMapper;

import java.util.List;

/**
 * ClassName ExtPrRightsQualificationMapper
 *
 * @author lujianyou
 * @version 1.0
 * @description 权益资格参数映射接口
 * @date 2021/6/11 10:41
 **/
public interface ExtPrRightsQualificationMapper extends PrRightsQualificationMapper {

    PrRightsQualification selectByQualificationId(String tenantId, String qualificationId);

    /**
     * 根据租户号、权益id 查询
     * @param tenantId
     * @param qualificationId
     * @return
     */
    PrRightsQualification selectByTenantIdAndRightsQualificationId(String tenantId,String qualificationId);

    /**
     * 根据租户id 查询所有记录
     * @param tenantId
     * @return
     */
    List<PrRightsQualification> listByTenantId(String tenantId);

    /**
     * 根据 租户id 分页查询记录
     * @param tenantId
     * @return
     */
    List<PrRightsQualification> selectByTenId(String tenantId);

    /**
     * 根据 租户id，权益资格id 修改记录
     * @param prShareProfitTable
     * @return
     */
    @ParamTuningAnnotation
    int updateByTenantIdAndQualificationId(PrRightsQualification prShareProfitTable);

    /**
     * 根据 租户id，权益资格id 删除记录
     * @param tenantId
     * @param qualificationId
     * @return
     */
    @ParamTuningAnnotation
    int deleteByTenantAndQualificationId(String tenantId, String qualificationId);

    /**
     * 根据 租户id，可用状态 查询下拉列表
     * @param tenantId
     * @return
     */
    List<PrRightsQualification> selectByTenIdAndStatus(String tenantId);

}
